<?php
error_reporting(0); 
include("../config/conn.php");
include("../config/common.php");
$username=$_GET["username"];
$email=$_GET["email"];
if ($username || $email){ 
if ($username)
{
$user=getone("select * from ubouser WHERE user='".$username."'");
}
else
{
$user=getone("select * from ubouser WHERE email='".$email."'");
}
if(empty($user))
{
echo msglayer("可以注册！",8);
exit;
}
else
{
echo msglayer("已被占用！",8);
exit;
}
} 
?>